package com.vic.test.designpattern._3singletonpattern;

public class SingletonStaticInnerClass {//静态内部类
    private static class SingletonHolder{
        private static final SingletonStaticInnerClass instance = new SingletonStaticInnerClass();
    }
    private SingletonStaticInnerClass(){}
    public static final SingletonStaticInnerClass getInsatance(){
        return SingletonHolder.instance;
    }

}
